﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Runtime.Serialization;

namespace Boiling.Common
{
    public class b_Activitydata : DataSet
    {
        public const string b_Activity_Table = "b_Activity";
        public const string Act_ID_Field = "Act_ID";
        public const string Act_Founder_Field = "Act_Founder";
        public const string Act_Name_Field = "Act_Name";
        public const string Act_Date_Field = "Act_Date";
        public const string Act_Pub_Date_Field = "Act_Pub_Date";
        public const string Act_Des_Field = "Act_Des";
        public const string Act_Amu_ID_Field = "Act_Amu_ID";
        public const string Act_Marks_Field = "Act_Marks";
        public const string Act_Marks_NO_Field = "Act_Marks_No";
        //最后一项是给这个活动打分的人数


        public b_Activitydata (SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
        public b_Activitydata()
        {
            Buildb_ActivitydataTables();
        }
        private void Buildb_ActivitydataTables()
        {
            DataTable table = new DataTable(b_Activity_Table);
            DataColumnCollection columns = table.Columns;
            columns.Add(Act_ID_Field, typeof(System.Int32));
            columns.Add(Act_Founder_Field, typeof(System.String));
            columns.Add(Act_Name_Field, typeof(System.String));
            columns.Add(Act_Date_Field, typeof(System.DateTime ));
            columns.Add(Act_Pub_Date_Field, typeof(System.DateTime ));
            columns.Add(Act_Des_Field, typeof(System.String  ));
            columns.Add(Act_Amu_ID_Field, typeof(System.Int32 ));
            columns.Add(Act_Marks_Field, typeof(System.Int32));
            columns.Add(Act_Marks_NO_Field, typeof(System.Int32));

            this.Tables.Add(table);
        }




    }
}